<template>
	<view class="page-container top_padding">
		<view class="top_select">
			<my-search @ok="searchOk" @blur="blur"></my-search>
		</view>
		<view class="list">
			<navigator class="card_box list_item flex flex-col just-sb mb28"  v-for="item in dataSouce"  :url="'/pages/announcement/detail?id='+item.id">
				<view class="c333  fwb text-ellipsis-2">{{item.newsTitle}}</view>
				<view class="flex just-sb c999 fs22">
					<view>{{item.sourceTime}}</view>
					<view>{{item.authorName}}</view>
				</view>
			</navigator>
		</view>
	</view>
</template>

<script>
	import {useListHook,} from '@/utils/hooks.js'
	import{gateway} from '@/utils/api.js'
	export default {
		mixins: [useListHook],
		data() {
			return {
				listUrl: gateway.operate+'/news/newInfo/list',
				params: {
					code: 'GSGG',
					newsTitle:''
				},
				
			}
		},
		methods: {
			searchOk(val){
				// console.log(val);
				this.params.newsTitle=val
				this.loadData(1)
			},
			blur(val){
				// this.params.newsTitle=val
				// this.loadData(1)
			}
		}
	}
</script>

<style lang="less" scoped>
.list_item{
	height: 209.03rpx;
}
</style>
